added code for deserialize of byte values to int and char types