Small Actionscript library to convert anonymous object to a typed instance