Implemented ByteWrapper with generics.
Changed method used to getAsInt()