ograms.</p>

<p>Arguments can be accessed by setting nargs and then using the ARG macro:</p>
<pre>
const int nargs = 2;
Value first = ARG(0);
Value second = ARG(1);
</pre>

<p>Arguments can be coerced to specific types by using force&lt;type> or by the str() and integer().  force&lt;type> is similar to dynamic_cast&lt;type> except that it will throw an exception if the value cannot be cast to that type. str() and integer() will automatically convert between strings and numbers where possible. For example:</