kotlin check type
fun main() {
val value: Any = "Hello, Kotlin!"
when (value) {
is String -> println("It's a String")
is Int -> println("It's an Int")
is Double -> println("It's a Double")
else -> println("It's some other type")
}
}