How do you access a RecordSet variable inside a Script Task?
An easier way I found (using C#) is simply casting the object as a string array. This is how my C# code looks now:
public void Main()
{
string[] arreglo = (string[])Dts.Variables["User::arreglo"].Value;
...
foreach (string elemento in arreglo)
{
// do stuff on each element of the array/collection
}
...
}