Failing upcast
Hello, for some reason im getting this error while my class
Jelo
is being declared as
Also if i try to explicitly cast, my app just breaks during runtime![](https://utfs.io/f/59e52557-927d-43bc-9422-80c909171740-1nq2cb.png)
1 Reply
also if i map it with
.Select(it => it as IManaged)
, it works, why isn't it able to directly cast ?
https://ericlippert.com/2007/10/16/covariance-and-contravariance-in-c-part-1/