Implemented Promise.cast