instanceOf

inline fun <T> Any?.instanceOf(): Boolean

Checks if the Any is an instance of type T.

Chained function call alternative to if(this is T).

Return

true if the Any is an instance of type T, otherwise false.