let recordType = ... // omitted let resultTypeRaw = typedefof> let resultType = resultTypeRaw.MakeGenericType([|recordType.AsType();typeof<