title: extracting an array from an array in C#
body: <p>I have a function in C#
  <code>void func(int x, int y, params object[] arr)</code></p>
  
  <p>Now this arr can contain anything. For e.g. it can contain an array at [0], a string at [1] and so on.</p>
  
  <p>If I pass the following parameters: <code>func(3, 4, array1, list1, "hello");</code></p>
  
  <p>array1 is an Array of int, list1 is a List</p>
  
  <p>My question is that how do I extract array1 and list1 from arr and convert it to an Array or List?</p>