an>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">resource</span> <span class="o">=</span> <span class="n">resource</span> <span class="k">as?</span> <span class="kt">NetworkResourceWithBody</span> <span class="p">{</span>
       <span class="c1">// You can use the body encoding methods here like `.json()` or `.data()`</span>
    <span class="p">}</span>

   <span class="k">return</span> <span class="n">resource</span>
<span class="p">}</span>
</code></pre>

                     