I don't think that is necessary cast the expression, only wrap the comparison with brackets