Yes, but that is orthogonal how primitives and reference types get exposed to the developer.
Something like toggle is also impossible in languages that favour immutability and forward progress requires creating new variables, like several functional and logic languages.
(You obviously know this, but it might be a surprise to many people reading this thread.)