Fixing a -Wcast-qual warning; NFC.