Herein, can you use Shimano cassette with SRAM?
Buyers are free to use a SRAM chain and cassette with their Shimano groupset, and vice versa, just as a SRAM chain can be paired with a Shimano cassette, and vice versa. SRAM's cassettes and chains are compatible with all of Shimano's groupsets, and vice versa.
Also, does SRAM 12 speed cassette fit on 11-speed hub? If it's not possible to get the freehub body for your hub that fits the cassette that you want, it is possible to play mix and match between SRAM and Shimano 12-speed cassettes. Both 12-speed setups from SRAM and Shimano share the same sprocket spacings and it's the same with both brand's 11-speed groups.
Also to know is, are all 12 speed cassettes compatible?
As it relates to the freehub, there is no compatibility difference between 11 and 12 speed Sram cassettes. Sram XX1, XX1 Eagle, X01, X01 Eagle, X1, GX, GX Eagle all use the XD freehub body. The Sram NX 12 speed cassette uses the Shimano HG freehub body, so you need to watch out for this one.
Why are SRAM cassettes so expensive?
The SRAM cassettes are lighter because of the lack of spiders connecting the different cogs, and the smaller driver. That's why they are so expensive too. and at least the highest end stuff (like eagle, possibly some of the 11spd stuff) is machined from a single piece, and isn't an assembly component.