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

cast

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

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