I was trying to cast a type any to boolean. So I simply did this:
let a = (<any>myType) as boolean;
But a was not a boolean it just contains myType value.
However When I try this:
let b = Boolean(myType);
b returns a boolean which is false.
Am I missing something about "as" casting?
Which one is correct to cast to boolean?