safeCast

inline fun <T : Any> Any?.safeCast(): T?

Perform this as? T.