Trying to give objects proper type after loading from local storage.