Changing from freewheel to cassette.
I'm having trouble trying to understand this whole hub measurement to order a new one since it's my first time doing so. It's hard to measure the hub with the freewheel and rotor on but I came up with 177mm the same as my dropout on the bike (diamondback said it's 150mm but the tape measure reads 7inches which it 177mm). My axles are the cheap bolt on 10mm axles. I wanted to buy a new wheel with a cassette so I could switch to 9speed instead of 7speed. So would that mean if I purchased a 177mm rear wheel with QR it would fit into it? Or if I got a 170mmx12 thru axle and got a 12mm to 10mm axle and a few spacers it would work for it? Any help is appreciated thank you.