public static TypedExpression Cast(TypedExpression value, KDPgValueType pgType) { RawQuery rq = new RawQuery(); rq.AppendWithCast(value.RawQuery, pgType); return(new TypedExpression(rq, pgType)); }