title: How to extract elements of an array in object type in c#?
body: <p>I have an object which contains an array of <b>any type (not a priory known type. So I cannot a simple cast in the code because I can determine the type just in the run-time!)</b>. How can I extract the content of array?
  For example:</p>
  
  <pre><code>int[] array = new int[] { 0, 1, 2 };
  object obj=array;
  ...
  //Here I know that obj is an array (&lt;b&gt;of a priory unknown type and I cannot use type conversion in the code &lt;/b&gt; 
  //How can extract elements of obj and use them, e.g. write them on the screen?`
  </code></pre>