You can convert G21s and G30s to 10mm with just a barrel swap and magazine. HOWEVER, it will almost certainly need a new or modified extractor, and you will likely end up going to a stronger recoil spring. The smaller caliber guns (all other than .45ACP/10mm) can not be converted to 10mm because the magazine well is too short, front to back.
Do yourself a favor and just buy a gun that was DESIGNED for 10mm. Get a G20 or G29. With those you can shoot the following with nothing more than a barrel swap: .40S&W, .357Sig, 9x25Dillon. THEN, you can get a barrel and magazine and shoot 9mm all day long.
Get a G20 or G29, they are basically 5 calibers in one, if you buy the barrels (not that you'll EVER shoot the other calibers, trust me, 10mm is ADDICTIVE!!!). Ten millimeter is a high pressure cartridge and needs a heavier slide than the .45ACP guns have. Although many have converted G21/30s and they are fine, the G20/29 are much stronger guns. Look at the difference in the slides. The 10mm slides are WAY thicker (I mean from underneath, the frame rails are thicker, NOT the outside thickness).
I shoot and reload .45ACP and 10mm. I have a G21SF and G29, and the G29 is BY FAR my favorite Glock. It is the most versatile auto pistol in the world. Especially if you reload. You can use it for bear protection, human protection, hunting, whatever. My shooting buddy also has a G32, and I really like the .357Sig. But it is no 10mm. Don't try to convert TO 10mm, when you can just HAVE a 10mm. Then you can get a barrel to shoot .357Sig, and all the others. You will NEVER regret getting a G29. I understand the allure of a gun that shoots BOTH .45ACP and 10mm, but trust me, you won't do much .45ACP shooting. The 10mm is that good and fun. I barely shoot my G21SF anymore, as I can barely bring myself to reload .45ACP. The 10mm is just so much more fun and exciting.
Another option would be to buy a G29 (or G30) and then buy an entire upper slide assembly for the other caliber. That would basically give you both guns with perfect reliability. You wouldn't have to worry about using a light G30 slide with 10mm or an extractor made for .45ACP. You would just have one frame, and two slides.