cast

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

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

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

Casts the given any with help of kotlin.reflect.full.cast to the specified T.