Make this `get_type_and_data` and return the value of both attributes.