Promise.cast -> Promise.resolve to keep up with spec change