refs #6583. const cast fixes.