support for key_schema.types (castTo) and comparators (defaultMatch)