Meaning of "to put a cupcake to someone's head"

I'm reading The Sellout by Paul Beatty. It says:

"You’d rather be here than in Africa. The trump card all narrow-minded nativists play. If you put a cupcake to my head, of course, I’d rather be here than any place in Africa"

What does "If you put a cupcake to my head" mean here?


Solution 1:

The phrase “put a cupcake to my head” mimics the far more common idiom

hold/put a gun to my head
: to force someone to do something by using threats

The cupcake is just the author's innocuous/jocular/sarcastic/twist on a well-known idiom. It is, as far as I know, not used in daily conversation.