bamdmux
fun Any.test() = when (this) { is Int, is Long -> println("Number $this") is String -> println("String $this") else -> println("Other") }