nameName structure contains "account_name value" attribute. Look at "eosiolib\types.hpp"
account_name is just uint64_t; (eosiolib\types.h)
so uSo you can:
account_name a = N("accname"); //eq of string_to_name(..)
name n = name {a};
a = n;
string accname = n.to_string();
lookLook at hello\hello.cpp for example.