First say that 1byte is equal to 8 bytes, and bytes32 is equal to 8*32=256 bytes;
Then uint8 is also equal to 8 bytes, uint256 is 32 times of 8 bytes (256/8=32);
So when seeing byteX and uintY, if X*8=Y, it means byteX=uintY.
First say that 1byte is equal to 8 bytes, and bytes32 is equal to 8*32=256 bytes;
Then uint8 is also equal to 8 bytes, uint256 is 32 times of 8 bytes (256/8=32);
So when seeing byteX and uintY, if X*8=Y, it means byteX=uintY.