Switched type_to_type Array to an Object