Hi,
for this, I would recommand iterating through the index integer itself and then based on the integer you use arrayGet and specify the right type.
modify that action to do so would be very counter productive I feel because if you stored at index 3 a GameObject and then at index 4 a string, which is perfectly ok, then for all iterations you would save the same entry into at least one wrong variable. Doesn't feel very nice
so prefer a manual iteration and based on the index you transit to a "Get GameObject" state or "Get String" state, this will be a lot more sane as an approach.
and actually, if you know where things are by index, then simply go to them directly without iterating, seems not necessary.
Bye,
Jean