The API documentation of IBM Notes explains that a Name object can only be obtained from the Session. “To create a new Name object, use createName in Session. ” see this page
Session s = NotesFactory.createSession();
Name n = s.getUserNameObject();
solved Convert Type “String” to type “Name”