convert object to array c# code example
Example 1: convert array object to int[] c#
object[] objarr = new object[] {1,2,3 };
int[] arr = objarr.Cast<int>().ToArray();
Example 2: convert object to list of objects c#
IList collection = (IList)myObject;