Comparison without casting to string