Downcast variable to appease clang