Change type for exists flag