title: How to cast a list
body: <p>I have a class A and a class B, class B is inherit from class A.
  Assume that I have:</p>
  
  <pre><code>A a1 = new B();
  A a2 = new B();
  List&lt;A&gt; LA = new List&lt;A&gt;{a1, a2};
  </code></pre>
  
  <p>Please help me how to convert List to List. I try to use <code>List&lt;B&gt; LB = (List&lt;B&gt;)LA</code> but get compiling error <code>"Can't convert List&lt;A&gt; to List&lt;B&gt;"</code>.</p>
  
  <p>Please help me. Thanks.</p>
  
  <p>Note: only .NET 2.0. Thanks.</p>