Issue with user and tostring functions

Hi,

Can someone help me here.

Line1 code in the below attached image is giving proper expected output (Email).

Where as Line2 is returning an error.

Any idea what went wrong.

  Discussion posts and replies are publicly visible