Q:

How to convert array objects to just elements without the [] wrapper in python?

I have encountered a problem in my code where I have to pass a 2D array to a function. The function works normally when I pass the values as [[166, 1692], [463, 1506], [113, 1572], [490, 1480]], but what I am receiving from another piece of code is this: [array([498]), array([1568])], [array([242]), array([1688])]]. I want to convert this format to the previous one. I want then in x,y format and I have tried many ways to convert back and forth and it does not work. I have to remove that "array" wrapper and also the "[]" wrapper around every element. Is there any way to do this? Any help will be much appreciated. Thank you.
UPDATE: Thank you for all the answers. The answer by Ayoub Zarou works as expected. Thank you once again.

A:

try doing : 
np.array(x).reshape((len(x), -1)).tolist()

where x is your list

