Added type conversions for retrieval.