Make casts const correct.