implement decoding of integer values.
implement decoding of boolean fields.