TEIID-2960 fixing class cast exception