Raw yams are not edible and cannot be digested. These must be sprouted or cooked to be edible.
You can cook yams by boiling, roasting, and frying. You can also use them in preparing desserts.