title: How to cast object/structure into arraylist?
body: <p>I have a structure in C#.net. I have created an object of that structure. I need to cast this object of structure into ArrayList. 
  I am using :</p>
  
  <pre><code>OrderMessageStructure.OrderMessage orderToModify = new OrderMessageStructure.OrderMessage();
  
  object neworderobject = (object)orderToModify;
  ArrayList arr = new ArrayList();
  arr = (ArrayList)neworderobject;
  </code></pre>
  
  <p>But I am getting error "Unable to cast object of type 'OrderMessage' to type 'System.Collections.ArrayList'."</p>
  
  <p>How to convert object/structure into ArrayList?</p>