CSharp and CLI backend use same function to convert the calling convention.