In lieu of any written undertaking or bond required by law in any matter, before any court of the State, the party required to make such undertaking or bond may make a deposit in cash or securities of the State of North Carolina or of the United States of America, of the amount required by law or, in the case of fiduciaries, of the amount of the trust, in lieu of the said undertaking or bond and such deposit shall be subject to all of the same conditions and requirements as are provided for in written undertakings or bonds, in lieu of which such deposit is made.
N.C. Gen. Stat. § 58-75-1