resolve becomes cast, cast becomes deprecated.

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