Add a missing cast to prevent a compiler warning.