Modified MDPState size_t conversion to match older code version.