Hi Royale,

I was recently trying to cast an Object

    obj as CustomVO

but it would always turn to null. The as operator kept thinking CustomVO was
type Function() why would this be?

The workaround ending up being to set the prototype.

    Object.setPrototypeOf(obj, CustomVO.prototype);

and this successfully casted correctly. Is there a better way to do this?
Most likely something something to do with the structure of CustomVO? the
classes it extends?

Thanks for your time.

-Gabriel Barbosa



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Reply via email to