Conversion of Distance to integer prior to comparison