Code has been added to clipboard!

Integer Conversion in Solidity

Example
uint16 a = 0x1234;
uint32 b = uint32(a);
assert(a == b);