I need some help with this class io.github.realyus...
# getting-started
y
I need some help with this class io.github.realyusufismail.ydwk.event.EventReceiver cannot be cast to class io.github.realyusufismail.ydwk.impl.event.handle.coroutine.CoroutineEvent I have this interface and trying to cast it to a class which implements it I dont get it why it does not work
😶 1
j
But is it actually an instance of that class? You cannot cast arbitrary instances to arbitrary types. You can only cast instances that are actually already of that type at runtime, but for which this fact is not known at compile time.
y
how would i make it know at compile time