Sorry, you don't. It's a leftover from an earlier attempt to do something different with dynamic.
Your assumption is correct: It is already a string and there is no purpose to casting it to a String.
I don't recall exactly where that artifact came from but I recall the original release of Dynamic had a very different method signature and I was fiddling to figure out the new signatures when I wrote this. The examples I found when I wrote this used the old interface and the new one had no docs or examples yet so I did a bit of playing.
I've updated the gist to remove the unnecessary asInstanceOf and demonstrate it as proper code.