ofType

inline fun <T : Any, R : T> ofType(cls: KClass<R>): T(source)


inline fun <T : Any> ofType(): T(source)

Checks if the value belongs to the type.