modified UVector conversion for slightly better performance