Similarly deathbed conversions are often permitted because they have the same connotation to forgiveness.
Perhaps the most momentous conversion in Western history was that of Constantine I, Roman Emperor. While his belief in Christianity occurred long before his death, it was only shortly before his death in 337 that he was baptised.
Conversions at the point of death have a long history. The first recorded deathbed conversion appears in the Gospel of Luke where the good thief, crucified beside Jesus, expresses belief in Christ. Jesus accepts his conversion, saying “Today you shall be with Me in Paradise". [1]