Any probate judge, clerk of a court of record, register, sheriff, coroner, tax collector, county treasurer, trustee of public schools, notary public, constable, or other public officer who knowingly converts to his own use or permits another to use any of the revenue of the state or of any county or municipality thereof or any money paid into his office or received by him in his official capacity is liable to indictment and, on conviction, must be punished as if he had stolen it.