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