resolve becomes cast, cast becomes deprecated.

- [x] update tests
- [x] decide on deprecation strategy.