After having seven children, I've developed a good idea of how to communicate with little ones. Especially new toddlers.
My daughter is now 18 months old and is your typical, Miss Trying-To-Be-Independent, but naturally, isn't quite there yet. She requires constant supervision as many 18-month-olds do. And is constantly trying to touch and play with things that are inappropriate for her. I was explaining to my ten year old daughter a concept of communication and the perception a new toddler has, and I thought I'd share it here, revamped and revised for parents, with "big people" words of course :).
If the item does not propose any immediate danger, but needs to be removed. Give your child an option to hand it over, by asking.
The point in asking is giving your child the sense of independence they are looking for at that age.
Now the key to getting a child to hand something over willingly, is tone and building behavior-awarding habits. It's important to get the child to look directly in your eyes, by bending down to their level. Ask very firmly with a smile, and your hand out, "May I have that please?". You can reinforce your question by pointing to the object and pointing to your open hand. Ask at least two more times with the same tone, insistent, but friendly. If the child hands it over, immediately say "Yay, good job!". Clapping all the while with a huge smile. Sometimes, I even sing a song. Completely made up and personalized with their name. Remove the item completely from their line of vision. You may need to create a distraction as they may change their minds about giving up their "toy".
If the child refuses, extract the item quickly (no tug of war), and still offer praises as if they handed it over freely. When you extract the item, quickly remove it from the child's line of vision. Crying may commence, but after a few more episodes of this, they will recognize the pattern of handing things over and being praised for it. You can also involve other members of the family in praising the child when they hand over items of their own free will.
I'm blessed to have such a large loving family. My older children love to get involved in praising and encouraging the younger ones. 18 months may seem too young, but I have seen it time and time again, children understand MUCH more than they are given credit for. The younger you teach a child how to follow simple instructions, the easier it will be when they are older toddlers and children. The smoother it will be for moms and dads to manage their children's safety with ease.