update() and load() throw ClassCastExceptions