asKClass

fun KType?.asKClass(): KClass<*>?

The class of this type, or null if this type is null or its classifier is not a class (e.g., a type parameter).