@Test
public void convertNumbersIntoPrimitiveInteger() {

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