"In python, how do I cast a class object to a dict",dict(my_object)