Get Why is change the data type?

Hello Brett.

Help to understand the anomaly.
Executing the following code:

$res = $cbBucket->get($cbGet);

echo "\r\n<hr><b>cbGet res</b><br>";
var_dump($res);

data type of "value"
On Monday object(stdClass):

cbGet res
object(CouchbaseMetaDoc)#16 (4) { ["error"]=> NULL ["value"]=> object(stdClass)#8 (5) { ["docId"]=> string(24) "062e186f1b210e49d17a914a" ["createdAt"]=> int(1454140186) ["updatedAt"]=> int(1454266897) ["userEmail"]=> string(19) "mne@sergeykozlov.ru" ["userPassword"]=> string(8) "Password" } ["flags"]=> int(33554438) ["cas"]=> resource(7) of type (CouchbaseCAS) }

On Tuesday string:
cbGet res
object(CouchbaseMetaDoc)#12 (4) {
[“error”]=>
NULL
[“value”]=>
string(142) “{“docId”:“eded5a6cc3ec348e767084d2”,“createdAt”:1454390234,“updatedAt”:1454393253,“userEmail”:“mne@sergeykozlov.ru”,“userPassword”:“Password”}”
[“flags”]=>
int(0)
[“cas”]=>
resource(2) of type (CouchbaseCAS)
}

Why is change the data type?