Geometry(Voxels) to 3D Numpy array

Hi, i wanted to know what could be the best way to make a 3d numpy array from a voxelated geometry in grasshopper?

Assigned to grasshopper category.