As far DF makes type casting automatically, we consider
the following PalmOS types and sizes.
If you can correct it - don't hesitate.


size      type

32: AppInfoPtr
32: BitmapPtr
32: BitmapType*
32: Boolean*
32: char*
32: Char*
32: CmpFuncPtr
32: ColorTableType*
32: ControlType*
32: Coord*
32: CustomPatternType*
32: DatePtr
32: DateTimePtr
32: DaySelectorPtr
32: DlkServerParamPtr
32: DlkServerSessionPtr
32: DlkSyncStateType*
32: DmComparF*
32: DmOpenRef*
32: DmResID*
32: DmResType*
32: DmSearchStatePtr
32: Err*
32: EventPtr
32: EventType*
32: EvtSetKeyQueuePtr
32: EvtSetPenQueuePtr
32: ExgDBDeleteProcPtr
32: ExgDBReadProcPtr
32: ExgDBWriteProcPtr
32: ExgDialogInfoType*
32: ExgSocketPtr
32: FieldAttrPtr
32: FieldAttrType*
32: FieldPtr
32: FieldType*
32: FindParamsPtr
32: FindParamsType*
32: FldGetTextPtr
32: FldSetTextPtr
32: FntGetFontPtr
32: FontPtr
32: FormActiveStateType*
32: FormBitmapType*
32: FormCheckResponseFuncPtr
32: FormEventHandlerType*
32: FormGadgetHandlerType*
32: FormGadgetType*
32: FormLabelType*
32: FormType*
32: FrmGetFormPtr
32: FrmGetObjectPtr
32: FrmGraffitiStateType*
32: FrmValidatePtr
32: GoToParamsPtr
32: GraphicControlType*
32: GrfMatchInfoPtr
32: IndexedColorType*
32: INetCacheInfoPtr
32: INetConfigNamePtr
32: INetEventType*
32: INetURLInfoType*
32: INetURLType*
32: Int16*
32: Int32*
32: IrConnect*
32: IrIasObject*
32: IrIasQuery*
32: IrPacket*
32: ListDrawDataFuncPtr
32: ListType*
32: LocalID*
32: MdmInfoPtr
32: MemHandle*
32: MemLocalIDToLockedPtr
32: MemLocalIDToPtr
32: MemPtr
32: MemPtr*
32: MenuBarType*
32: MenuCmdBarResultType*
32: NetConfigNamePtr
32: NetFDSetType*
32: NetHostInfoBufPtr
32: NetHostInfoPtr
32: NetIOParamType*
32: NetMasterPBPtr
32: NetServInfoBufPtr
32: NetServInfoPtr
32: NetSocketAddrType*
32: PenBtnInfoType*
32: PointType*
32: ProcPtr
32: ProgressPtr
32: RectanglePtr
32: RectangleType*
32: RGBColorType*
32: ScrollBarPtr
32: SearchFuncPtr
32: SerSettingsPtr
32: SilkscreenAreaType*
32: SliderControlType*
32: SlkPktHeaderPtr
32: SlkSocketListenPtr
32: SlkWriteDataPtr
32: SndCommandPtr
32: SndSmfCallbacksType*
32: SndSmfChanRangeType*
32: SndSmfOptionsType*
32: SortRecordInfoPtr
32: SysAppInfoPtr
32: SysAppInfoPtr*
32: SysBatteryKind*
32: SysEventType*
32: SysLibEntryProcPtr
32: SysLibTblEntryPtr
32: SysNotifyParamType*
32: SysNotifyProcPtr
32: SystemPreferencesPtr
32: SysTermProcPtr
32: SysTimerProcPtr
32: TableDrawItemFuncPtr
32: TableLoadDataFuncPtr
32: TableSaveDataFuncPtr
32: TableType*
32: TblGetItemPtr
32: TblSetItemPtr
32: TimeType*
32: UInt16*
32: UInt32*
32: UInt8*
32: void*
32: UInt32
32: LocalID
32: DmOpenRef
32: Int32
32: MemHandle
32: ErrJumpBuf
32: FileHand
32: INetCacheEntryP
32: INetConfigNameType 
32: NetConfigNameType  
32: GetCharF
32: PutStringF
32: IrCallBack
32: IrDeviceAddr
32: NetIPAddr
32: NetSocketRef
32: PrgCallbackFunc
32: SerWakeupHandler
32: _Palm_va_list
32: WinHandle
32: WindowType*
32: WinLineType 
32: PointType   
32: VoidPtr
32: Int*
32: UInt*
32: ULong
32: WordPtr
32: Ptr
32: DWordPtr
32: DWord
32: BytePtr*
32: Ptr*
32: ULong*
32: DmResType

16: UInt16
16: Coord
16: DmResID
16: Int16
16: Err
16: WChar
16: int
16: HostControlTrapNumber
16: Word
16: UInt
16: FrameType

8: UIColorTableEntries
8: SystemPreferencesChoice
8: FormObjectKind
8: EvtSetAutoOffCmd
8: WinScreenModeOperation
8: NumberFormatType
8: MenuCmdBarResultType
8: Char
8: UInt8
8: Int8
8: Boolean
8: SndSysBeepType
8: ClipboardFormatType
8: ControlStyleType
8: NetSocketAddrEnum
8: NetSocketTypeEnum
8: privateRecordViewEnum
8: SelectDayType
8: SndSmfCmdEnum
8: ReferenceType
8: KeyboardType
8: TableItemStyleType
8: TimeFormatType
8: UIPickColorStartType
8: WindowFormatType
8: IndexedColorType
8: WinLockInitType
8: PatternType
8: UnderlineModeType
8: BitmapCompressionType \ enum
8: DateFormatType
8: DateType
8: DlkCtlEnum
8: FileOpEnum
8: FileOriginEnum
8: JustificationType
8: WinDirectionType
8: BOOL
8: WinDrawOperation
8: Byte
8: FontID



types of results:

d0: Boolean
d0: UInt32
d0: Err
d0: UInt16
d0: Int16
d0: Int32
d0: UInt8
d0: BOOL
d0: LocalID
d0: FontID
d0: FormObjectKind
d0: IrStatus
d0: LocalIDKind
d0: NetIPAddr
d0: privateRecordViewEnum
d0: Coord
d0: IndexedColorType
d0: PatternType
d0: WinDrawOperation
d0: UnderlineModeType
d0: UInt
d0: Byte
d0: Word
d0: DWord

a0: BitmapType*
a0: void*
a0: Char*
a0: ControlType*
a0: GraphicControlType*
a0: SliderControlType*
a0: ColorTableType*
a0: MemPtr*
a0: PenBtnInfoType*
a0: SilkscreenAreaType*
a0: FieldType*
a0: FormType*
a0: FormBitmapType*
a0: FormGadgetType*
a0: FrmGraffitiStateType*
a0: FormLabelType*
a0: UInt16*
a0: UInt8*
a0: MenuBarType*
a0: MemHandle
a0: FontPtr
a0: DmOpenRef
a0: FileHand
a0: WinHandle
a0: MemPtr
a0: NetHostInfoPtr
a0: NetServInfoPtr
a0: NetSocketRef
a0: ProgressPtr
a0: SysLibTblEntryPtr
a0: FieldPtr
