--TEST-- MongoDB\BSON\Int64 casting --FILE-- ===DONE=== --EXPECTF-- object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(1) "2" } int(2) float(2) string(1) "2" bool(true) object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(1) "0" } int(0) float(0) string(1) "0" bool(false) ===DONE===