Made value storage type agnostic returning object type.