fix ClassCastException in ReflectiveInterceptor.jlrMethodInvoke

Findbugs detected 2 impossible casts in ReflectiveInterceptor.jlrMethodInvoke
Attached are test cases to reproduce the issues and the fix in ReflectiveInterceptor.jlrMethodInvoke