BugId:94775 - More clever casting to bool