presto-main/src/main/java/io/prestosql/type/DecimalCasts.java/DecimalCasts/booleanToLongDecimal
class DecimalCasts:    @UsedByGeneratedCode
    public static Slice booleanToLongDecimal(boolean value, long precision, long scale, BigInteger tenToScale)
    {
        return unscaledDecimal(value ? tenToScale : ZERO);
    }