Provide proper `to_hash` conversion