fix for ClassCastException in ReflectiveInterceptor.jlrMethodInvoke