> Because casts in Kotlin/JS just get erased, s...
# javascript
s
Because casts in Kotlin/JS just get erased, since JS is already dynamically typed.
Are you sure?
Copy code
val x = 1
    val y = x as String
    println(y)
This will cause ICE, no?