DDF-819: Removed unnecessary cast to SecurityToken