Cooking, especially with wet high-heat methods, including boiling or stewing can inactivate most lectins in tomatoes. You may also soak them in water for several hours to inactivate them. Exposure to water kills lectins as they are water-soluble and found on the outer surface of the food.