Check if a variable's type is primitive
<p>maybe this question is a bit stupid but I don't know how to check if a variable is primitive. In java it's like this:</p>

<pre><code>if var.isPrimitive():
</code></pre>

<p>Thank you.</p>
