Rzuć Uint, aby zająć się solidnością
uint num = 10;
// first cast uint256 to uint160 then cast to address
address addressFromUint = address(uint160(num));
Anxious Alligator
uint num = 10;
// first cast uint256 to uint160 then cast to address
address addressFromUint = address(uint160(num));