cast field values into their respecting type defined in the schema in obj.as_schema_json and Obj.from_json