Don't require Promise.cast in middleware