Transform value into number before comparing