So, I am a little bemused by this code fragment, since this is Ruby, and the only thing that could possibly fail to become a string would be either BasicObject, or something custom-written to do that, and those are gonna be pretty rare -- by which I mean "in this context, will never exist".

So, might be easier to just replace the entire function body with `args[0].to_s` and be done with it.