I have a question about type inheritance and casting.
Lets say i have a base type A with two child types A1 and A2.
An object of B has a collection
IList<A>, which in turn populated with objects of types A1 and A2. A collection is save into a document an has proper structure.
How could i load a collection of
IList<A> with proper list items types (A1 and A2)?