Update JarInMemory.java

Fixed a casting issue