protected function prepare_value( $value, $schema ) {
		switch ( $schema['type'] ) {
			case 'string':
				return (string) $value;
			case 'number':
				return (float) $value;
			case 'boolean':
				return (bool) $value;
			default:
				return null;
		}
	}