I would recommend using an array of tuples instead. What you want can be accomplished using an array of type Any, but that's not a good idea.
Instead, your array should be [[(String, Int)]]. It will also be more compact than what you want to do.
source
to share