core: Rename to_mut and from_mut to cast_to_mut and cast_from_mut
Merge pull request #4596 from Trinick/tomutrename

core: Rename to_mut and from_mut to cast_to_mut and cast_from_mut