Check out example codes for "c# enum to int array". It will help you in understanding the concepts better.

Code Example 1

int[] b = Array.ConvertAll((int[])Enum.GetValues(typeof(TestEnum)), Convert.ToInt32);

Learn ReactJs, React Native from akashmittal.com