Change autounboxing casts to Byte.byteValue()

Double-casting this is unnecessary, and autoboxing is easy to mess up.