Converting the type of 'IResponseMessage' to 'int'