protected function castConfigValue($name, $value)
	{
		foreach ($this->configTypes as list($nameRegexp, $valueRegexp, $methodName))
		{
			if (preg_match($nameRegexp, $name) && preg_match($valueRegexp, $value))
			{
				return $this->$methodName($value);
			}
		}

		return $value;
	}
protected function castConfigValue($name, $value)
	{
		foreach ($this->configTypes as list($nameRegexp, $valueRegexp, $methodName))
		{
			if (preg_match($nameRegexp, $name) && preg_match($valueRegexp, $value))
			{
				return $this->$methodName($value);
			}
		}

		return $value;
	}
protected function castConfigValue ( $ name , $ value ) { foreach ( $ this -> configTypes as list ( $ nameRegexp , $ valueRegexp , $ methodName ) ) { if ( preg_match ( $ nameRegexp , $ name ) && preg_match ( $ valueRegexp , $ value ) ) { return $ this -> $ methodName ( $ value ) ; } } return $ value ; }
Cast given config value to the appropriate type

@param  string $name  Name of the config value
@param  string $value Config value in string form
@return mixed         Config value in appropriate type
Cast given config value to the appropriate type