How can you cancel casting a spell?

Solution 1:

You can stop casting a spell the same way you un-nock an arrow - simply "sheathing" your weapon (or spell, in this case) will refund the allocated Magicka and not cast the spell.