Persisting ActivityCategoryToken to CoreData

I am building an app that manages ScreenTime and I would like to persist the tokens of which apps are frequently limited to CoreData locally. I attempted to do so by converting to a string but was unable to find a way to initialize an ActivityCategoryToken with a string.

Is this possible? Am I going about it the wrong way?

Thanks.

Persisting ActivityCategoryToken to CoreData
 
 
Q