Contact Form: send to selected person/email

How do I create a contact form that sends to a selected person/email?

I’ve tried this in the fields section:

    to:
    type: radio
    label: Choice
    default: bob@example.com
    options: 
         bob@example.com: Bob
         jane@example.com: Jane

with this in the process section:

    to: '{{form.value.to}}'

But I get the following error:

    0 - Address in mailbox given [] does not comply with RFC 2822, 3.6.2.

This post is helpful, but I still cannot get it to work.

Solved: I omitted “name” in front of “to:”

Thus, this does work:

        name: to
        type: radio
        label: Choice
        etc.