[jnigen] Add correct cast to interface method invocation (https://github.com/dart-lang/jnigen/issues/385)