src: refactor methods

Rename all CastTo* methods into New*. This is just a better name.