I was removing (well, trying to) a SRAM 10-42 cassette from an XD freehub body which had, unknown to me, been overtightened. All the splines sheared off with a bang leaving it utterly impossible to remove cassette from freehub body. That's £300+ at RRP wrecked.
Just a warning - FFS - Fit them with a torque wrench! It's 40Nm, the same as any cassette. And grease/anti seize the threads too.
As you can see here the splines are long and thin and once they're gone, that's it. You're buggered.