I'm new to C# and I can't find an example of this anywhere (although I have seen similar examples but the casting was ToString, whereas in my case I want arrays of integers). I have a DataTable object, 

```
DataTable results = dbCon.ExecuteQuery("my query");

int m = results.Rows.Count; 
int n = results.Columns.Count;

```

I want a jagged array consisting of n one-dimensional arrays (each array being a column of the DataTable (`results`, in this case).

```
int[][] jagged = new int[n][];

for (int i = 0; i < n; i++)
            {
                jagged[i] = new int[m];
                //var coli = results.Columns.Cast<Array>().Select(column => Convert.ToInt32(column)).ToArray();
            //jagged[i] = coli;
        }

```

I've tried a few things (for example what I commented out) but I'm quite stuck now. 

If anyone knows how to do this, please post something! Thanks!

Also, to be more specific, I'd really like to use a function like the one NumPy provides to Python... `dataSet = np.array(dataList).astype('float')`. Double for loops are not in my best interest as my DataTable is large.