Boolean Casting on Hash Shortcuts

Added boolean casting on hash shortcuts that return a boolean value.