it’s likely complaining about the `Y`
# announcements
e
it’s likely complaining about the
Y
b
What do you mean? In this scenario,
x: Any
s
that’s why he said the compiler is complaining about type
Y
, not
x
you may want to review the documentation on Unchecked casts: https://kotlinlang.org/docs/reference/typecasts.html#unchecked-casts