Added convert methods to allow storage in database as string (URI) or
number (EAN).