More common interface for this type of method is #to_hash. Ditton on #to_list and #to_data below.