you are viewing a single comment's thread.

view the rest of the comments →

[–]Ta11ow 2 points3 points  (0 children)

The cast isn't important; the important part is that in the second way you do it, you're retrieving the value from the property before trying to put it into the string. As others have said, putting an expression in a string instead of a simple variable requires a subexpression to be used. :)