it was a formula field, and I tried using VALUE() function, which, as I understand, should return numerical version of the passed-in string.
however, i've managed to resolve this differently, so I have deleted the formula fields.
what you're saying makes sense, though, so consider this resolved, i'll keep that in mind for the future.