presto-main/src/main/java/io/prestosql/cost/StatsUtil.java/StatsUtil/convertibleToDoubleWithCast
class StatsUtil:    private static boolean convertibleToDoubleWithCast(Type type)
    {
        return type instanceof DecimalType
                || type instanceof DoubleType
                || type instanceof RealType
                || type instanceof BigintType
                || type instanceof IntegerType
                || type instanceof SmallintType
                || type instanceof TinyintType
                || type instanceof BooleanType;
    }