How to look for a class type in an array using generics
===

I'd like to look for a specific class type into an array. No clue how.

    var a:A = new A();
    var b:B = new B(); // B extends A
    var c:C = new C(); // C extends A
    
    var arr:Array<A> = [];
    arr.push(a);
    arr.push(b);
    arr.push(c);
    // i'd like something like:
    c = arr.get<C>();