Cancer can have a direct or indirect impact on the heart. Certain types of cancer, such as lung and breast cancer, can metastasize to the heart, leading to complications. Some cancer treatments, like chemotherapy and radiation, can also damage the heart tissue and blood vessels, resulting in cardiotoxicity. This can lead to heart failure, arrhythmias, and other cardiovascular problems.