I had convert() as a static method before, but I've changed it prior to uploading. The computer I'm on doesn't have any IDE and I can't be bothered compiling and running through a CLI, so I hope it works (it seems like it should :P).
All of the documentation is in the snippet.