In a set of tiles, would detecting objects on either side of the tiles (top/bottom) be easier with a raycast or dual collider?

I’m building a tile grid and have it instantiated, but now need to be able to tell what kind of objects are on either side of it - top AND bottom, not just top. I’ve been using a raycast which only seems to be partially effective. Would it be better to use two compound box Colliders?

You should use a 2D array to represent the world. Then you can simply look up values in the array.