typecast for win32