preconvert function param and return types for #327