I'm trying to convert this maze:

```
[['#', '#', '#', '#', '#', '#'],
 ['#', 'o', '#', ' ', '#', '#'],
 ['#', ' ', '#', ' ', '#', '#'],
 ['#', ' ', ' ', 'x', '#', '#'],
 ['#', '#', '#', '#', '#', '#']]

```

to this:

```
[[0, 0, 0, 0, 0, 0],
 [0, 1, 0, 1, 0, 0],
 [0, 1, 0, 1, 0, 0],
 [0, 1, 1, 1, 0, 0],
 [0, 0, 0, 0, 0, 0]]

```

Is there a quick way to do convert the **char** values to **ints**? I don't know exactly what I need to be searching for. Also, what is the best way to traverse this?