int variables converted to byte and short

Conversion is used to save memory space, since the size of an int isn't
required.