The enlightened sage Meher Baba used to travel all around the world visiting psychiatric hospitals for finding masts and properly rehabilitating them. He carefully distinguishes the mast state from madness and explains that in the case of the mad person, the mind is sped up, while in the case of the mast it is slowed down.
He considered masts to be spiritually developed people who had become spellbound by inner spiritual experiences and ecstasies and hence found it hard to operate and function normally in the material world. Consequently, to the casual observer, they would look mad even though they were actually harmless and highly sensitive people .
Meher Baba taught that the mast properly rehabilitated would continue in their spiritual path and would be of inward service to humanity.
A compilation of his sayings on masts....
https://www.meherbabadnyana.net/life_eternal/Book_One/Masts.htm