Switch to using C++ style casts.