Cast self to boolean for {{view}}
Merge pull request #119 from zzmp/selfCast

Self cast