How can I move "on my mac" Contacts to my iCloud ID
A well intentioned clerk at Apple Store was trying to help, made the assumption that my icloud email was my iCloud ID on a new device. So I wound up with two iCloud IDs. The only way to fix was to turn the undesired id off in System Preferences. When you do that, it asks if you want to back the contacs up to your mac and, since I didn't want to lost them, I said yes. Now, I have two identities in Contacts under All My Contacts: Apple ID and On my Mac. I want to move the On my Mac contacts to my Apple ID. I can't drag and drop them as a group. How can I do it?
iMac, macOS High Sierra (10.13.3), 27" 3.2 GHz Intel Core i5