Method to convert an lgcpgrid object into an array.
## S3 method for class 'lgcpgrid' as.array(x, ...)
x
an object of class lgcpgrid
...
other arguments
conversion from lgcpgrid to array