Add more flexibility to conversion functions