Cast object id to string in UnitOfWork