Convert Promise.cast to Promise.resolve. Fixes #98.