title: convert an arraylist of different types
body: <p>I have an arraylist that could contain 1 of 3 types (switch1, switch2, switch3).  How do I convert this to a List?</p>
  
  <pre><code>var switches = _switch.Switches;  
  var newList = switches.Cast&lt;SwitchObj&gt;().ToList();
  </code></pre>
  
  <p>This didn't work.  Here is what is in each of switch1, switch2, switch3</p>
  
  <pre><code>string DeviceType 
  string Name
  string[] State
  </code></pre>