``` val foo: String? = null foo.let { (it as ...
# announcements
u
Copy code
val foo: String? = null

foo.let {
    (it as String).length // TypeCastException obviously
}
Could this be prevented at compile time? Something along the lines of "this cast cannot succeed"?