Removed unnecessary cast in parameter assignment.