By calling Boolean(foo.bar)
, you are getting a wrapped boolean object which would have some additional Object sspecific functionality (and here you dont want them)
Using !!foo.bar
you'll get a boolean literal, So i think this evaluation will be fast.