Convert to string if necessary.