I am trying to convert an address to payable address but I'm not able to do it. please find my code below:
address a = destinationAddress; address dest = address(uint160(a)); dest.transfer(amount);
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
You must be using solidity 0.5 or above compiler, just declare destinationAddress as payable :
address payable destinationAddress, then you can directly use
Also check this for more breaking changes.