Rewrite convert functions after validation phase