Convert dependencies to list