Removed an unnecessary cast