Getting TypeError: “send” and “transfer” are only available for objects of type “address payable”, not “address”

Working on this Udemy course for Ethereum and i keep getting the error mentioned in the title of the question. For reference i have checked out the answers on questions: 1, 2 and 3. But the error persists. The contract goes like this: pragma solidity >=0.4.22 <0.6.0; contract Lottery { address public manager; address[] public…

Details