I have a `List<object>` stored in a database.
Each list object consists of an `object[]` consisting of int values.

I can save, view, and retrieve the data. I can view the data in the debugger. But I cannot cast back to int or an array.

```
foreach (object item in list)
{
    if (item.GetType().IsArray)
    {
        var arr = item as int[];

        foreach (var i in arr)
            print(i);
    }
}

```

At the if statement, item shows the data in the debugger pictured below but is false, but how do I cast back to object[]?

[![enter image description here](https://i.stack.imgur.com/TkZJz.png)](https://i.stack.imgur.com/TkZJz.png)

I have also tried:

```
var newItem = item as object[];

```

Edit: This is how I'm initializing the object. I start with an object because I get cast errors if I try wrapping an int[] when I send to the database.

```
var listValues = new List<object>();
var newArray   = new object[10];

newArray[0] = (int)c.Tag;
newArray[1] = (int)c.FPos;
newArray[2] = (int)c.ToL;

listValues.Add(newArray);

```