Example: context.session object [ "myNode" ] returns an object but contains a node. IMO, the Java-style cast is acceptable in this case.
As a workaround to satisfy the linter, I can only type: node<> myNode = context.session object [ "myNode" ] as SNode and than do the cast.