Datastore Unable to cast value to Object

Oh no, no, no, no. Please revamp your code and use Profile Service (AKA ProfileStore) instead, DataStores are very complex Profile Service makes this Easier.

Here’s how to set it up.