A charge air cooler (100) comprises a drain arrangement for draining condensed matter from the internal space of the charge air cooler (100) . The drain arrangement comprises an opening (110) in a bottom portion of the charge air cooler (100) . At least one member (120, 180) is positioned to open and close said opening (110) . The at least one member (120, 180) is controlled to close and open said opening (110) responsive to temperature changes.