return metric values as ints or floats if possible