Potential idea to fix the type casting problem which should remove it completely.
We can check the type of the variable immediately after extracting our population from the PopulationView. Then after predicting the next state, we can cast the predicted column to the original type. This should stop any current and future issues with this, and would mean we don't need to change anything in the code when i.e. moving between local and arc runs, or using a different machine.
Potential idea to fix the type casting problem which should remove it completely.
We can check the type of the variable immediately after extracting our population from the PopulationView. Then after predicting the next state, we can cast the predicted column to the original type. This should stop any current and future issues with this, and would mean we don't need to change anything in the code when i.e. moving between local and arc runs, or using a different machine.