```val foo: String? = null (foo as CharSequence).l...
# announcements
i
Copy code
val foo: String? = null
(foo as CharSequence).lastIndex
Why doesn't Kotlin warn that this cast might cause a NullPointerException? (The correct cast should be
CharSequence?
)