transform tresql - classcast fix