doc / ch.tutteli.atrium.core.polyfills / kotlin.reflect.KClass / cast

cast

expect fun <T : Any> KClass<T>.cast(any: Any?): T (source)

Casts the given any to the type of the given KClass.