@Test
public void convertNumbersIntoPrimitiveDouble() {

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