Casting a string to boolean
Lets say that we have a String with the value "false" or "true". Lets now cast this String to a boolean value. In Java it would be
// notFun = true
The above will only be false if false, NaN, null, 0 or an empty String is provided, everything else will return true.
So the only way to cast a String with the values "true" or "false" is to use eval...
var snowing = eval("false");
Anybody has another way to do the cast?