Remove C-style casts