[Olena-patches] cleanup-2008 2261: Make the from_to conversion mechanism more general.