Cut a lime in half and use it to wet the rim of your serving glass. (Or, use water or some cream of coconut syrup if you are not using a fresh lime.)
Dip the wet rim into the shredded coconut, turning the glass so that the entire rim is covered. Set the glass aside.
Wash and dry a rosemary sprig and cranberries, and set them aside while you make the drink.
Cocktail
Add the lime juice, cream of coconut, Cointreau, tequila, and vanilla vodka to a cocktail shaker.
Fill the shaker with ice, seal it up and shake for 15-20 seconds.
Fill the serving glass with fresh ice and strain the drink into the glass.
Add the cranberries to the glass. Lightly tap the rosemary against your palm, add it the glass, and serve.
Notes
Make sure to shake the cream of coconut well before measuring it out.
The coconut in this drink will tend to separate out of the mixture within 5 to 10 minutes, so it's best enjoyed just after shaking and straining. But, you can also just stir it up again and it will still be good!