cast array elements to int 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: c# convert enumb to int array
int[] result = enumArray.Cast<int>().ToArray();