Change some ids and values to integer.

Some types can be changed to integer because they will be always returned as such.