The thing is that your data table is the one that defines the data type. The best thing would be to fix the data table so it stores numbers as numbers and not as strings. That may not be possible for many reasons so what you're doing is pretty much your only option.
↧