Remove unneeded const_casts