added toMatrix to CorrelationsObjectInterface