How to Stop C# Coroutine

I need to kill a coroutine in C# that was started with:

StartCoroutine(MyTimer(x));

How can I do this?

StopAllCoroutines() seems to work but StopCoroutine(nameOfCoroutine) doesn’t, and I have no idea why.