@Test
public void convertNumbersIntoPrimitiveLong() {

    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, Byte.valueOf("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, Short.valueOf("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, Integer.valueOf("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, Long.valueOf("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, Float.valueOf("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, Double.valueOf("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, new BigInteger("10")));
    assertEquals((long) 10, (long) TypeUtils.convertValue(Long.TYPE, new BigDecimal("10")));
}