Since the tasks in the instance data are stored in a array that may get resized you will need to useTStateTreeInstanceDataStructRefto reference a struct based task instance data. It is defined below, and has example how to use it.Storage for the actual instance data.