"in python, how do i cast a class object to a dict",dict(my_object)