How to switch between two different type of pawns

Hey there. Just tried your method but I couldn’t get it to work. I am sure it’s my fault. I am missing something.