Fix some casts
I think that the default GCC options in Fedora got stricter recently, as I need to add these explicit casts in order for the build to complete.
I think that the default GCC options in Fedora got stricter recently, as I need to add these explicit casts in order for the build to complete.