c# object as list code example
Example 1: convert object to list of objects c#
IList collection = (IList)myObject;
Example 2: c# new list object
var intList = new List<int>();
IList collection = (IList)myObject;
var intList = new List<int>();