Added cast so UA will build under windows.