public static <T> T convertWithCheck(Type type, Object value, T defaultValue, boolean quietly) {
		final ConverterRegistry registry = ConverterRegistry.getInstance();
		try {
			return registry.convert(type, value, defaultValue);
		} catch (Exception e) {
			if (quietly) {
				return defaultValue;
			}
			throw e;
		}
	}
@Test
	public void toLongFromNumberWithFormatTest() {
		final NumberWithFormat value = new NumberWithFormat(1678285713935L, null);
		final Long aLong = Convert.convertWithCheck(Long.class, value, null, false);
		assertEquals(new Long(1678285713935L), aLong);
	}