[DROOLS-136] fix instanceof constraint using # type casting operator