Is this cast necessary? Isn't `request` already a `ResourceRequest`?