GCC warns about removing const with a c-style cast.