Convert index to double in dman

Some older version of Matlab doesn't recognize class ctg as
valid indices for matrix and cell, so convert the ctg classed
id into a double before using it as an index