move mutable int to primitive