Yes, it's a easy way to make a string cast. 

I haven't tested it there; but PostgreSQL seems to have this function too http://www.postgresql.org/docs/9.1/static/functions-string.html