No, those are specifically designed for LED lighting, they're constant current supplies.
This is what I use for such applications. Obviously, for this application, I use a 5V regulator IC. I fold the regulator under the board and heat-shrink the whole thing.
You can also just make one of these on a perf-board.
Click on graphic to expand.