as_dgCMatrix function

Coerce a matrix-like objects to dgCMatrix (sparse matrix)