Rewrite of numerical conversion.