src/ItePHP/Core/MapperService.php
public function cast($mapperName,$value){
		if(!class_exists($mapperName)){			
			throw new MapperNotFoundException($mapperName);
		}

        /**
         * @var MapperAbstract $mapper
         */
		$mapper=new $mapperName($this->container);
		return $mapper->cast($value);
	}
public function cast($mapperName,$value){
		if(!class_exists($mapperName)){			
			throw new MapperNotFoundException($mapperName);
		}

        /**
         * @var MapperAbstract $mapper
         */
		$mapper=new $mapperName($this->container);
		return $mapper->cast($value);
	}
Cast value

@param string $mapperName - class with implements mapped code eg: "ItePHP\Mapper\Text"
@param mixed $value - value to cast
@return mixed
@throws MapperNotFoundException