A simple method would do the trick:
public string[] GetValues(object[] decodedValues)
{
string[] returnValues = new string[decodedValues.Length];
for(int i=0; i<decodedValues.Length; i++)
{
returnValues[i] = ((XmlAttribute[])decodedValues[i])[2].Value;
}
return returnValues;
}
But remember: If the types from your screenshot don't match, you'll get your InvalidCastException
.. So there is room for some improvement to check if the types match.