snrostov
Because casts in Kotlin/JS just get erased, since JS is already dynamically typed.
val x = 1 val y = x as String println(y)