refs #6583. fix const cast.