One would need to see exactly what is the type of grid.
But you can use x = [] and just add anything there, it is just that this is of type Any and may have some performance effect later (although all this is highly speculative with the information we have here).