Ensure the assertion also checks for object type (Carbon)