Fix cast away const warning.