@Override
	public Ptg getPtgVal()
	{
		Object value = getValue();
		if( value instanceof Ptg )
		{
			return (Ptg) value;
		}
		if( value instanceof Boolean )
		{
			return new PtgBool( (Boolean) value );
		}
		if( value instanceof Integer )
		{
			return new PtgInt( (Integer) value );
		}
		if( value instanceof Number )
		{
			return new PtgNumber( ((Number) value).doubleValue() );
		}
		if( value instanceof String )
		{
			return new PtgStr( (String) value );
		}
		return new PtgErr( PtgErr.ERROR_VALUE );
	}