public static double castToDouble(Long i) {
   return (double) i.longValue();
 }
 public static BigDecimal castToBigDecimal(Long i) {
   return BigDecimal.valueOf(i.longValue());
 }
 public static BigInteger castToBigInteger(Long i) {
   return BigInteger.valueOf(i.longValue());
 }
 public static long castToLong(Long i) {
   return i.longValue();
 }
 public static int castToInt(Long i) {
   return castToInt(i.longValue());
 }
 public static boolean castToBool(Long i) {
   return i.longValue() != 0;
 }