Er, actually removing types from JavaObject.