castOrNull

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

Deprecated

To be removed as it avoids IDE and compiler checks.

Replace with

this as? T