C#C
C#17mo ago
NamaimNM

Casting class with generic variable to the same class with an interface that the generic implements

i have a variable of type ScriptableUnit<MinionStats> and im trying to cast it to ScriptableUnit<IUnitStats> and it does not work even though MinionStats implements the IUnitStats interface, do you know why and how i can deal with it?
Was this page helpful?