Only convert array if needed