Alkaloids are basic. Make the sample basic, pH 10 or higher, which converts alkaloids to the free-base and extract into dichloromethane. You can optionally back-extract into acidic water, separating the alkaloids from non-polar compounds that extracted into the dichloromethane.