[as3] Cast to the proper type when generating interface field access (really closes #1142), thanks @waneck for surfacing it :-P