title: How to convert to a specific object before I select a new list object in Linq
body: <p>I have a List , object "a" whose type is 1, 2, 3, I want to test object </p>
  
  <p><code>a.type == 1</code> or <code>a.type == 2</code> or <code>a.type == 3</code> </p>
  
  <p>Then I will convert to my data type, for example <code>a.type == 1</code> convert to <code>classtype1</code>, or <code>a.type == 2</code> then convert to <code>classtype == 2</code> .. next I will select a new list to save All three types of this object.</p>