Add marshalling to object id