dinput: COM cleanup - use helper function instead of direct typecast in base device...