Shimano designed those splines to be done in steel; they doubled the height of them the one time they did them in ally. I think you can nearly get away with it if it's forged ally, but it's best if either the hub uses those little steel strips, or you use a billet cassette.
Billet cassettes are spendy, but steel ones aren't heavy, and chains are much cheaper - swap them out early and you also preserve chainrings which can cost a bomb too.
Shimano designed those splines to be done in steel; they doubled the height of them the one time they did them in ally. I think you can nearly get away with it if it's forged ally, but it's best if either the hub uses those little steel strips, or you use a billet cassette.
Billet cassettes are spendy, but steel ones aren't heavy, and chains are much cheaper - swap them out early and you also preserve chainrings which can cost a bomb too.