I don't know that this guarantees safety, but when I've done this I've selected an amount that's within my credit limit but greatly exceeds my cash advance limit. I'm using a Citi card anyway, but this seems like extra insurance that it won't post as a cash advance.