<@U10EJRH2L> <@U29HX9CBF> an unchecked cast warnin...
# announcements
y
@Ruckus @tokie an unchecked cast warning is shown for type casts involving generics. a type check or a cast. for example, if you have
val x: Any
which has a
List<String>
as a value and you use
x as? List<Int>
, the cast will succeed and return a non-null value, and you can then get a ClassCastException when accessing the data in the list
👍 1