means that
someone abandons caution and acts without due regard for possible danger or adverse consequences.
similar to
Throw caution to the winds.
Imagine a case where you do something without worrying about the risk or negative results; then “To cast prudence to the winds” fits well.