|
I'm pretty sure this is possible, but I can't get it to work.
I'm wanting to typecast a generic object that gets returned by a
WebService call into a VO, but I'm having some issues.
Say I have a VO of the following:
public class TestVO{
[Bindable] public var i_test:int;
[Bindable] public var s_test:String;
[Bindable] public var o_test:Object;
}
Then I get an object back from a WebService call that has a similar
structure, can't I just do the following?:
var typeCastTry:TestVO = RETURN_OBJ as TestVO;
When I do this, typeCastTry gets set to null.
Any help would be awesome!
Mark
|