@SuppressWarnings("unchecked")
		public <W> W[] toArray(Direction direction, KeySpan keySpan, W[] a, int size) {
			final List<Object> list;
			if (a.length < size) {
				list = new ArrayList<>();
				toList(list, direction, keySpan);
				return list.toArray(a);
			}
			intoArray((E[]) a, direction, keySpan);
			for (int i = size; i < a.length; i++) {
				a[i] = null;
			}
			return a;
		}
Convert the raw component to an element

@param raw the raw component
@return the element
@throws IOException if there's an issue reading the table
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/DBCachedObjectStore.java