Our teacher, the Beit Yosef, wrote in section 5: It is permitted to perform libun on Yom Tov on iron vessels in which they baked cheese flaon, and after the libun they may bake a meat pasty in them. This is provided that when it undergoes libun, they place it upon the food immediately. However, if it has absorbed from nevelah or the like – it is forbidden to perform libun on it even to bake a permitted item in it. Thus far his words, and the reason is because with the absorption of a permitted substance – a light libun where straw is burnt upon it from the outside is sufficient, as I have written above in siman 451 and in Yoreh Deah siman 121. And it is not evident that he is doing so to render it kosher, and it is like preparing it for cooking. Therefore, he required that immediately after the libun it be placed upon the food, so that it should appear that he is occupied only with the business of cooking. But that which has absorbed from nevelah – requires a strong libun, so that sparks fly from it, as I have written there, and it is evident to all that this is not for the sake of cooking but for the sake of rendering it kosher. And another reason appears to me: that when it is of a permitted substance it is permitted to be moved, and at every single moment he can cook the previous permitted substance in it, but he desires a different food. And the libun is no worse than a mere cleaning when one wants to clean the vessel, which is not the case when the vessel is treif, for even though it is possible that it is permitted to be moved as it is fit to place a cold item in it, nevertheless when it is heated a little – it is not fit for anything, and therefore libun is forbidden in its case. (And the Magen Avraham wrote in subsection 11, that from this there is proof that it is permitted to render kosher from meat to milk and from milk to meat. Not like that which is common in the mouths of people that it is forbidden, for the reason that if so a person would have only one vessel and would perform hagalah on it constantly and would come to err, see there. And in truth it is a wonderous thing: is it within our power to decree decrees from our own minds? Furthermore: in Shabbat 16b, regarding old impurity where the sages decreed something similar to this, they said it was because of the fence of the purification water or other reasons, see there. But otherwise, it is completely permitted.)
כתב רבינו הבית יוסף בסעיף ה: מותר ללבן ביום טוב כלי ברזל שאפו בו פלאדי"ן של גבינה, ואחר הליבון יאפו בו פשטידא של בשר. והוא שכשיתלבן יתנו אותו על המאכל מיד. אבל אם הוא בלוע מנבילה וכיוצא בה – אסור ללבנו אפילו לאפות בה דבר היתר. עד כאן לשונו, והטעם משום דבבליעת היתר – די בליבון קל שקש נשרף עליו מבחוץ, כמו שכתבתי לעיל סימן תנא וביורה דעה סימן קכא. ואינו ניכר שעושה להכשירה, והוי כמעמידה לבישול. ולכן הצריך תיכף אחר הליבון ליתנו על המאכל, כי היכי דליתחזי שעסוק רק בעסק בישול. אבל הבלוע מנבילה – צריך ליבון חזק, כדי שתהא נצוצות ניתזין ממנו, כמו שכתבתי שם, וניכר לכל שאין זה לשם בישול אלא לשם הכשר. ועוד נראה לי טעם: דכשהיא של היתר מותרת בטלטול, ובכל רגע ורגע יכול לבשל בה ההיתר הקודם, אלא שרצונו במאכל אחר. ולא גרע הליבון מנקיון בעלמא שרוצה לנקות הכלי, מה שאין כן כשהכלי טריפה, אף שאפשר שמותרת בטלטול דראויה היא לשום בה דבר צונן, מכל מקום כשמתחממת קצת – אינה ראויה לכלום, ולכן אסור בה הליבון. (וכתב המגן אברהם סעיף קטן יא, דמזה ראיה דמותר להכשיר מבשר לחלב ומחלב לבשר. דלא כדמרגלא בפומי דאינשי שאסור, מטעם דאם כן לא יהיה לאדם רק כלי אחד ויגעילנו תמיד ואתי למיטעי, עיין שם. ובאמת דבר תמוה הוא: וכי ביכולתנו לגזור גזירות מדעתינו? ועוד: דבשבת טז ב, בטומאה ישנה דגזרו חכמים כעין זה, אמרו משום גדר מי חטאת או שארי טעמים, עיין שם. אבל בלאו הכי היתר גמור הוא.)