This method returns a .NET compatible value from a FoxPro value for a number of custom .NET types that aren't supported by FoxPro directly.

Some of the results from this method return a ComValue object (shown with a *) that can only be used with InvokeMethod/SetProperty calls rather than direct access of a .NET object.

Int16* Int64* Byte* (pass integer) DbNull* (pass null) Decimal Binary Byte

Note that you can also use the ComValue class directly from your code as it provides a few additional features that this simple helper function does not expose.