title: How to Call contract inside another contarct in solidity version 0.5.2?
body: <p><strong>I'm using solidity version 0.5.2</strong></p>
  
  <pre><code>pragma solidity ^0.5.2;
  
  contract CampaignFactory{
  address[] public deployedCampaigns;
  
  function createCampaign(uint minimum) public{
      address newCampaign  = new Campaign(minimum,msg.sender);  //Error 
  //here!!!
      deployedCampaigns.push(newCampaign);
  } 
  
  function getDeployedCampaigns() public view returns(address[] memory){
      return deployedCampaigns;
  }
  }
  </code></pre>
  
  <p>I'm getting the <strong>error while assigning calling the Campaign contract inside CampaignFactory contract</strong></p>
  
  <pre><code>TypeError: Type contract Campaign is not implicitly convertible to expected 
  type address.        
  address newCampaign  = new Campaign(minimum,msg.sender);
  </code></pre>
  
  <p>I have another contract called Campaign which i want to access inside CampaignFactory.</p>
  
  <pre><code>contract Campaign{
  //some variable declarations and some codes here......
  </code></pre>
  
  <p>and I have the constructor as below</p>
  
  <pre><code>constructor (uint minimum,address creator) public{
      manager=creator;
      minimumContribution=minimum;
  
  }
  </code></pre>