Reputation: 137
I have this line in AS3 and did not find a proper cast to use.
var ok:LoginOk = msg as LoginOk;
Can someone tell me how to do that in Haxe, LoginOk extends msg.
LoginOk
msg
Upvotes: 2
Views: 96
Reputation: 34128
You can use an unsafe cast:
var ok:LoginOk = cast msg;
Upvotes: 3