cast and resolve are now the same thing, and cast will be gone in 4.0.0