@Test
public void castToNumberWithDefaultCantHandleNonNumberValues() {

    assertEquals(1, TypeUtils.castToNumber(null, 1));
    assertThrows(IllegalArgumentException.class, () -> TypeUtils.castToNumber(new Object(), 1));
}