Fix for PR#366. We use getClassB() so that we can handle cast instructions