ObjectStore contains Serializable, don't cast without checking it first or redefine the object store