We've cleaned up the `inc` headers to always use C++ casts. We need to do the same for the `src` source files.