Issue #355: Removed unnecessary (object) casting.