Added `cm_2long` as a generic wrapper for the `cm_xxx2long` family of functions.