pp"><code class="sourceCode cpp"><span id="cb71-1"><a href="200_robject.html#cb71-1"></a><span class="co">// Converting `RObject` to `NumericVector`</span></span>
<span id="cb71-2"><a href="200_robject.html#cb71-2"></a>RObject x;</span>
<span id="cb71-3"><a href="200_robject.html#cb71-3"></a>NumericVector v = as&lt;NumericVector&gt;(x);</span></code></pre></div>
</div>
<div id="using-robject-to-write-functions-that-receive-various-datatypes-function-templates" class="section level2" number="18.3">
<h2><span