It will cast to string automatically, you don't need String.valueOf here.