how to get vaule of function if return type is class : I am new in c# dot net and i am using trying to calling soap web service.
one of function in webservice returning class type. I am not able to get how I will return the value to type class.

Below is my function 
AuthenticateUser(string user_name, string password);  
this function is returning  class EQUser.

class consist of varialbles 

user_id  int    
user_name  string 
level  int  
user_group_id int
password  string
extended_permissions  int
email_id  string
email_username  string   
guid string

how i typecast AuthenticateUser function to get these above value


I have tried
 ServiceReference1.EqClient user = new ServiceReference1.EqClient();
         

 ServiceReference1.EQUsers equsr = new ServiceReference1.EQUsers();

            user.EQAuthenticateUser("admin", "");

how i will typecast user.EQAuthenticateUser("admin", "");
 to  ServiceReference1.EQUsers class