This phase II trial studies how well pegylated irinotecan NKTR 102 works in treating patients with non-small cell lung cancer, small cell lung cancer, or breast cancer that has spread to the brain and does not respond to treatment. Pegylated irinotecan NKTR 102 may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth.