original_string: protected function getTypeSwapValue($type, $value)
      {
          switch (strtolower($type)) {
              case 'int':
              case 'integer':
                  return (int) $value;
              case 'real':
              case 'float':
              case 'double':
                  return (float) $value;
              case 'string':
                  return (string) $value;
              default:
                  return $value;
          }
      }
code: protected function getTypeSwapValue($type, $value)
      {
          switch (strtolower($type)) {
              case 'int':
              case 'integer':
                  return (int) $value;
              case 'real':
              case 'float':
              case 'double':
                  return (float) $value;
              case 'string':
                  return (string) $value;
              default:
                  return $value;
          }
      }
code_tokens: protected function getTypeSwapValue ( $ type , $ value ) { switch ( strtolower ( $ type ) ) { case 'int' : case 'integer' : return ( int ) $ value ; case 'real' : case 'float' : case 'double' : return ( float ) $ value ; case 'string' : return ( string ) $ value ; default : return $ value ; } }
docstring: Converts a given value to a given type value.
  
  @param  string $type
  @param  mixed  $value
  @return mixed
docstring_tokens: Converts a given value to a given type value .