The following code,
function createForwarder() public returns (address) {
return new Forwarder();
}
gives error,
TypeError: Return argument type contract Forwarder is not implicitly convertible to expected type (type of first return variable) address.
return new Forwarder();
Currently I am using pragma solidity version ^0.5.1, how can I solve this particular error?