title: How to look for a class type in an array using generics
body: <p>I'd like to look for a specific class type into an array. No clue how.</p>
  
  <pre><code>var a:A = new A();
  var b:B = new B(); // B extends A
  var c:C = new C(); // C extends A
  
  var arr:Array&lt;A&gt; = [];
  arr.push(a);
  arr.push(b);
  arr.push(c);
  // i'd like something like:
  c = arr.get&lt;C&gt;();
  </code></pre>