Fix incompatible pointer warning

Just cast the result of `sp_key` to silence the warning.
Merge pull request #23 from sphia/fix-incompatible-pointer-warning

Fix incompatible pointer warning