I work in C# here, let's say i have:
class A
{}
class B : A
{}
List<B> myList;
I would like, in a part of the code cast this myList as List< A>,
but when I try to, I get an error:
List<A> myUpcastedList = (List<A>)myList; //not working
is it possible to do it ? if yes, what is the syntax ?