Add a cast to quiet the compiler warning.