If you have ecto around you can use Ecto.Type or Repo.load to transform data back to their higher level types.
Ecto.Type
Repo.load