Getting the following error: TypeError: Explicit type conversion not allowed from "uint256" to "address" with the code below specifically at: holders[index] = address(i);
uint256 index = 0;
for (uint256 i = 0; i < _reflectionFeeTotal; i++) {
if (_balances[holders[i]] > 0) {
holders[index] = address(i);
index++;
}
}
return holders;
}
}
Any advice would help. I'm learning.