Refactoring JScript code
<p>How can I make this code into a one line instruction?</p>

<pre><code>var qe : QuestionnaireElement = state.Parameters["demobreak"];

var qid : String = qe.QuestionId;

qid != "q45" 

public class QuestionnaireElement : ParameterValue, IParameterValue, ICloneabl
</code></pre>

<p>My real question is:</p>

<p>How can I cast in JScript objects?</p>

<pre><code>  ((QuestionnaireElement)state.Parameters["demobreak"]).QuestionId != "q45"
</code></pre>
