[#2190] ClassCastException when using UNION with selectFrom()