Conversion functions are provided to allow translation between ML types and C types. This allows values to be passed between the ML functions and the C functions.
For example, a window is implemented as a word type, so to pass a window in an argument as a word type requires the function windowToWord.
To illustrate, the following is an example of how to send a message to get the parent of a window using windowToWord and intToWord:
sendMessage (getParent mywindow,
WM_COMMAND,
WPARAM (intToWord someInt),
LPARAM (windowToWord mywindow));