Cast string as array
<p>How, in Javascript, can I cast a string as an array in the same way that PHP (array) does.</p>

<pre><code>//PHP
$array = (array)"string"
</code></pre>

<p>Basically I have a variable that can be an array or a string and, if a string, I want to make it an array using an inline command.</p>
