Removed incorrect boolean cast