static
	private Boolean toBoolean(Object value){

		if(value instanceof Boolean){
			return (Boolean)value;
		} else

		if((value instanceof Double) || (value instanceof Float) || (value instanceof Long) || (value instanceof Integer) || (value instanceof Short) || (value instanceof Byte)){
			Number number = (Number)value;

			if(number.doubleValue() == 1d){
				return Boolean.TRUE;
			} else

			if(number.doubleValue() == 0d){
				return Boolean.FALSE;
			}
		}

		throw new TypeCheckException(DataType.BOOLEAN, value);
	}
static private Boolean toBoolean ( Object value ) { if ( value instanceof Boolean ) { return ( Boolean ) value ; } else if ( ( value instanceof Double ) || ( value instanceof Float ) || ( value instanceof Long ) || ( value instanceof Integer ) || ( value instanceof Short ) || ( value instanceof Byte ) ) { Number number = ( Number ) value ; if ( number . doubleValue ( ) == 1d ) { return Boolean . TRUE ; } else if ( number . doubleValue ( ) == 0d ) { return Boolean . FALSE ; } } throw new TypeCheckException ( DataType . BOOLEAN , value ) ; }
@see DataType#BOOLEAN