In almost every case, a Shimano cog will fit on a Shimano body.
But some DA7800 bodies were that weird aluminum one with tall spinles. I don't know what other cassettes were made to fit on that body, besides 7800.
Are your splines tall and aluminum or normal and titanium?