There are a couple of ways to do this. The cheapest is to make the aqueous solution basic which will convert the alkaloid to the free-base which can be extracted with dichloromethane.
The other way is with a strong cation exchange column (SAX) as described here: