<@U5UU34LPK> <@U22BBEZQU> ~i wouldn't say its more...
# announcements
a
@karelpeeters @jdiaz i wouldn't say its more specific, because more values are of type
Any
compared to
String
.
What you are talking about is invariance.
MutableList<String>
cannot be cast into
MutableList<Any>
, but
List<out T>
(using variance
out
) allows you to cast
List<String>
into
List<Any>