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;
		}
	}
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;
		}
	}
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 ; } }
Prepare a value for output based off a schema array.

@param  mixed $value
@param  array $schema
@return mixed
Prepare a value for output based off a schema array .