Implementation of relocate_BZ_grid_address
Replace copying data by casting data