You can use [`KType.classifier`](
[To see links please register here]
) for this:
val intType : KType = Int::class.createType()
val intClassifier : KClassifier? = intType.classifier
assertEquals(Int::class, intClassifier) // true
Note that since 1.3.40 you can also (at least on the JVM) use the experimental [`typeOf<Int>()`](
[To see links please register here]
) to get your [`KType`](
[To see links please register here]
). You may want to have a look at the [1.3.40-announcement](
[To see links please register here]
) to see whether that might be useful to you.
Speaking of the JVM: on the JVM you can also use [`KType.jvmErasure`](
[To see links please register here]
) to get the actual class as also [marstran](
[To see links please register here]
) pointed out in the comment.