Hashlink cast error

Hi, everyone, I found that Hashlink has many errors like this and cannot be converted. Could this be a problem with Hashlink?

I think the OpenFL statement should be normal, but Hashlink reported an exception. Did I miss something?

Uncaught exception: Can't cast openfl.events.Event to openfl.events.MouseEvent
Uncaught exception: Can't cast openfl.events.Event to openfl.events.MouseEvent
Called from openfl.text.TextField.~this_onMouseDown.1(lime/app/Module.hx:0)
Called from openfl.events.EventDispatcher.__dispatchEvent(openfl/events/EventDispatcher.hx:402)
Called from openfl.display.DisplayObject.__dispatchEvent(openfl/display/DisplayObject.hx:1425)
Called from openfl.display.DisplayObject.__dispatchWithCapture(openfl/display/DisplayObject.hx:1486)
Called from openfl.display.DisplayObject.dispatchEvent(openfl/display/DisplayObject.hx:1143)

Is the current hashlink target stable and available? :thinking:

Haxe, OpenFl and Lime version please.

Versions:
haxe:4.1.5
openfl:8.9.5
lime:8.7.0

Openfl9 is currently a little problematic, I can’t migrate to 9.

I think this should be a Hashlink error, but it should be a very normal statement. It is impossible that the == operator will not judge the type, right?

Can you try to cast before comparing?
Or you can even check the type with Std.isOfType

This may be a tedious and unthankful thing. :face_with_raised_eyebrow:

Because I don’t know how many hidden dynamic types are in the library or in the game.