presto-spi/src/main/java/io/prestosql/spi/type/DecimalConversions.java/DecimalConversions/intScale
class DecimalConversions:    @SuppressWarnings("NumericCastThatLosesPrecision")
    public static int intScale(long scale)
    {
        return (int) scale;
    }