Code has been added to clipboard!

Conversion With Integers in Solidity

Example
uint32 a = 0x12345678;
uint16 b = uint16(a);