Conventional cooling channels used in die casting molds exhibit significant drawbacks, resulting in extended cooling times for cast parts. Issues such as the formation of dirt, limescale, and corrosion substantially diminish the thermal efficiency of these channels, leading to challenges in achieving uniform cooling and potential quality issues. In response to these challenges, this study proposes Topology Optimization as a novel approach. It involves designing cooling structures through Topology Optimization to replace traditional cooling channels, incorporating both Discrete and Gaussian boundary conditions to optimize thermal efficiency. Additionally, Structural Topology Optimization is employed to ensure structural integrity, preventing deformation or yielding under high loads during the die casting process. Numerical analysis revealed superior thermal performance compared to conventional channels, particularly when subjected to Discrete and Gaussian boundary conditions. Furthermore, the application of the latter establishes conformal cooling and minimizes temperature gradients in the casting, reducing casting defects such as shrinkage porosity. These findings highlight the efficacy of Topology Optimization in addressing the challenges of traditional cooling methods, with wide-ranging implications for manufacturing processes utilizing permanent molds for shaping materials.