If I have a bunch of implementations of interface ...
# announcements
k
If I have a bunch of implementations of interface like
Copy code
interface EventHandler<TData> {
    fun onEvent(data: TData)
}
and I receive
data
as
Any?
(it's a generic dispatch) and an identifier so I know I picked the right event handler, how can I invoke the handler in a way that would compile? (given I can't just make an unchecked call the way I could in Java)?