Handle things being either a string or number.

Handle the value being either a string or a integer as we have been inconsistent when saving numbers.