convert array object to int[] csharp

Code Example - convert array object to int[] csharp

                
                        object[] objarr = new object[] {1,2,3 };
int[] arr = objarr.Cast<int>().ToArray();