I am a bit confused what your doing it feels hacky...
# lime
o
I am a bit confused what your doing it feels hacky. I can hide the problems with casts
Copy code
Haxe
    static public function get_data<T:Data>(type:Class<T>):Array<T> {
    var t:Type = cast type;
        return cast ALL_DATA.get(t);
    }
But I feel this is wrong