src/Transformer/Transformer.php
public function convert($value, $to, array $exclude = array(), $max_nesting_level = null)
  {
    return $this->converter->convertTo($value, $to, $exclude, $max_nesting_level);
  }
public function convert($value, $to, array $exclude = array(), $max_nesting_level = null)
  {
    return $this->converter->convertTo($value, $to, $exclude, $max_nesting_level);
  }
public function convert ( $ value , $ to , array $ exclude = array ( ) , $ max_nesting_level = null ) { return $ this -> converter -> convertTo ( $ value , $ to , $ exclude , $ max_nesting_level ) ; }
Converts a value to an other format.

@param mixed  $value
@param string $to
@param array  $exclude
@param int    $max_nesting_level default value is 30

@return array|object|string
Converts a value to an other format .