Add an explicit cast to prevent a compiler warning.