Yes, many common types of beans are toxic. But, as you note, the thread is dealt with via boiling. We are typically so habitual in boiling (and often pre-soaking larger) beans that their toxicity - some of them rather spectacularly so - that most people are entirely aware of the fact.