optimization: avoid instanceof check if it is statically known to yield true.
Also avoids a compiler warning from this generated code.
1 file changed