convert from UserProfileData to UserProfile