An explicit converstion of type

Sometimes function get Buffer instead of String, we need convert it.