Тип котлина

val number = 5
if(number is Int) {
   println("number is of type Int")
}

println("${number::class.simpleName}")    // "Int"
println("${number::class.qualifiedName}") // "kotlin.Int"
VasteMonde