ActionScript 3 utility to convert generic objects into class instances.