Use str_to_bool instead