Don't cast away the const qualifier.  Fixes gcc build.