Removed a unnecessary cast