First you need to discard o[0, 0] in object[,] :
var o = (object[,]) ob4[0]; double[,] p = (double[,]) o[0, 0];
It would be better if you could avoid all of these nested multidimensional arrays with so little type information at compile time - you didn't give us much context, but if you could change your object model, that would help a lot.
source share