Why is my cast marked as an unchecked cast by the ...
# announcements
e
Why is my cast marked as an unchecked cast by the compiler? Shouldn't the safe cast deal with that?
Copy code
fun <T> foo() {
    object : Bar {
        override fun baz(foobar: Any?) {
            (foobar as? T)?.let {}
        }
    }
}