The best way to convert a code from one language to another in my opinion is performing this by yourself. There are many tools are available for it but always some tweaks are needed and sometimes is harder fix the resultant code than translate the code by your self from one programming language to another.