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