@Test
public void castBoolean(){

	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, (byte)1));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, (short)1));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, 1));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, 1l));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, 1f));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, 1.0f));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, 1d));
	assertEquals(Boolean.TRUE, TypeUtil.cast(DataType.BOOLEAN, 1.0d));
	try {
		TypeUtil.cast(DataType.BOOLEAN, Math.nextUp(1f));
		fail();
	} catch(TypeCheckException tce){
		// Ignored
	}
	try {
		TypeUtil.cast(DataType.BOOLEAN, Math.nextUp(1d));
		fail();
	} catch(TypeCheckException tce){
		// Ignored
	}
}