Found this on wikipedia(I know probably not the best source but not bad in general at least when starting investigations):
"To use the grains in human food, they need to be boiled or fried for at least 45 minutes. If the grains are eaten raw frequently, they can be toxic because they contain some alkaloids.[4] All the other Erythrina species contain much more alkaloids and are thus much more toxic. Some of these species resemble the Erythrina edulis species,"
SO cooking seems to eliminate the alkaloids of which it has comparatively low amounts anyway:)
So like some other edible Fabaceae rather not eaten raw.
Interesting thing about the alkaloids of this genus is one of them Cytisine has had good results in helping to cure tobacco addiction pretty cool