I am trying to cast IList type to List type but I am getting error every time.
IList
List
List subProducts= Model.subproduct
In my case I had to do this, because none of the suggested solutions were available:
List subProducts = Model.subproduct.Cast().ToList();