how to convert enum to array in c# code example Example: c# convert enumb to int array int[] result = enumArray.Cast<int>().ToArray();