Opcode.CastClass: When object was null, an exception was thrown.