Should any officer or employee of such city be elected by the people to hold any office or position with the State of Georgia or any political subdivision thereof which has its own pension system or systems; or should any such officer or employee be appointed, elected or transferred by the State of Georgia, any political subdivision or agency thereof to perform duties or functions on behalf of any political subdivision of the state, having its own pension system or systems, similar to the duties or functions which such officer or employee performed on behalf of said city; such officer or employee so elected, appointed or transferred, shall be entitled to receive a refund of all amounts deducted from his salary for pension purposes and/or credit to his account on the books of said city's pension fund, together with a like amount in matching funds from the funds held by the board of trustees of such pension funds. Provided, however, such refund shall be paid directly to the pension fund of the board or authority covering the office or position to which such employee or officer is elected, appointed or transferred and shall not be paid as a cash refund to the officer or employee.