You can just assign `byte` value to variable of type `long`:
```
        byte byteValue = 127;
        long longValue = byteValue;
```