	@Test
	public void testInt() {

		assertTrue("Unable to process valid cast", SafeCast.toInt(new Integer(22), 7) == 22);
		assertTrue("Default did not work (wrong type)", SafeCast.toInt(new Long(22), 7) == 7);
		assertTrue("Default did not work (null)", SafeCast.toInt(null, 9) == 9);
	}