how to convert and object into list c# code example Example: convert object to list of objects c# IList collection = (IList)myObject;