@Test
public void castToNumberCantHandleNonNumberValues() {

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