Removed unnecessary boolean casting