Try
List<SubProduct> subProducts = new List<SubProduct>(Model.subproduct);
or
List<SubProduct> subProducts = Model.subproducts as List<SubProduct>;
More Related Contents:
- Shorter syntax for casting from a List to a List?
- 2 ways of list making in c# [duplicate]
- What is the best way to organize a lot of data which contains multiple conditions?
- How can I cast int to enum?
- List or IList [closed]
- Create an array or List of all dates between two dates [duplicate]
- How do arrays in C# partially implement IList?
- How can I get every nth item from a List?
- How can I add an item to a IEnumerable collection?
- Binding List to DataGridView in WinForm
- Value of type ‘T’ cannot be converted to
- How can I cast int to enum in C#?
- Why does (int)(object)10m throw “Specified cast is not valid” exception?
- Linq select objects in list where exists IN (A,B,C)
- How to initialize a list of strings (List) with many string values
- Converting from IEnumerable to List [duplicate]
- Why enums require an explicit cast to int type?
- Does Distinct() method keep original ordering of sequence intact?
- Split string, convert ToList() in one line
- When a class is inherited from List, XmlSerializer doesn’t serialize other attributes
- Generics: casting and value types, why is this illegal?
- How can I sort a List by multiple T.attributes?
- C# – elegant way of partitioning a list?
- Easiest way to Rotate a List in c#
- How to Serialize List?
- How to find List has duplicate values in List [duplicate]
- WriteLine with a class
- Selecting unique elements from a List in C#
- Sort one list by another
- Why doesn’t IList support AddRange