Add a cast to fix compilation.