Temurah7: 3
אֶחָד קָדְשֵׁי מִזְבֵּחַ וְאֶחָד קָדְשֵׁי בֶדֶק הַבַּיִת — אֵין מְשַׁנִּין אוֹתָן מִקְּדֻשָּׁה לִקְדֻשָּׁה, וּמַקְדִּישִׁין אוֹתָן הֶקְדֵּשׁ עִלּוּי, וּמַחֲרִימִין אוֹתָן. וְאִם מֵתוּ — יִקָּבֵרוּ. רַבִּי שִׁמְעוֹן אוֹמֵר: קָדְשֵׁי בֶדֶק הַבַּיִת, אִם מֵתוּ — יִפָּדוּ.
[Concerning] both Altar consecrations and Temple-upkeep consecrations, we cannot change them from one sanctity to another sanctity. [However,] we may consecrate them with a consecration of appraisal, and we may make them [the object of] a cherem vow. And if they died, they must be buried. R’ Shimon says: [With regard to animals] consecrated for the upkeep of the Temple, if they died, they may be redeemed.