Some more code gen and type conversions.