Api returns int for text value?

shouldn’t break anything, I didn’t know back then that the number casting would have such side effects