Check for size compatibility.