How to switch Male Pin Header to Female

Note: Not all manufacturer's pins fit in all housings. Likely more do than don't but I have some TE Connectivity pins that don't fit in the eBay purchased housings. Actually they fit but the pin lock is not correct.