docs: public static long castToIntegral(Decimal dec) {
  		BigDecimal bd = dec.toBigDecimal();
  		// rounding down. This is consistent with float=>int,
  		// and consistent with SQLServer, Spark.
  		bd = bd.setScale(0, RoundingMode.DOWN);
  		return bd.longValue();
  	}