Heart drug may be effective for managing certain cancers, study finds