presto-main/src/main/java/io/prestosql/type/IntervalYearMonthOperators.java/IntervalYearMonthOperators/castToSlice
class IntervalYearMonthOperators:    @ScalarOperator(CAST)
    @LiteralParameters("x")
    @SqlType("varchar(x)")
    public static Slice castToSlice(@SqlType(StandardTypes.INTERVAL_YEAR_TO_MONTH) long value)
    {
        return utf8Slice(IntervalYearMonth.formatMonths(toIntExact(value)));
    }