title: Can ArrayList in c# store heterogeneous data
body: <p>Is it possible to store integer, strings and user-defined class objects in one arraylist like </p>
  
  <pre><code>ArrayList a=new ArrayList();
  
  class Demo {}
  Demo d=new Demo();
  
  a.Add(12);
  
  a.Add("Faizal Sardar Khan");
  
  a.Add(d);
  </code></pre>
  
  <p>If it all it is possible, then how to access the elements stored(how to cast 'em out)?
  If not, then is there any way out to implement this?</p>