Cast value when passing into sp_get

This silences the `incompatible pointer types passing 'char **' to parameter of type 'void **'` warning, but it's ugly...