fixed unsigned integer assignment in ToStructs