Fixed incorrectly generated conversion code.