Convert Mix.Dep record to struct