small actionscript library to convert anonymous object to a typed instance