setSelectedInfoRole()
is a non-static
method and you're trying to call it in a static
manner PeopleInfoData.setSelectedInfoRole
which is wrong. You need to create a object of that class and then call that method.
new PeopleInfoData().setSelectedInfoRole(new SelectOption<String>(peopleInfoData.getPeopleInfoRecord().getInfoValue()));
But it looks as that you already have a object created for that class. You need to use that object to call this method.
PeopleInfoData peopleInfoData = (PeopleInfoData) selectedObj;
peopleInfoData.setSelectedInfoRole(new SelectOption<String>(peopleInfoData.getPeopleInfoRecord().getInfoValue()));