core: Rename to_mut and from_mut to cast_to_mut and cast_from_mut

Solution to issue #3355 asking for the renaming of vec::to_mut/from_mut to cast_to_mut/cast_from_mut