message: Object Store: Assert on concrete list type in List, always used LnkLst for ObjKey
diff: @@ -154,12 +154,21 @@ private:
  template <typename T>
  auto& List::as() const
  {
  + REALM_ASSERT(dynamic_cast<Lst<T>*>(&*m_list_base));
  return static_cast<Lst<T>&>(*m_list_base);
  }
  template <>
  inline auto& List::as<Obj>() const
  {
  + REALM_ASSERT(dynamic_cast<LnkLst*>(&*m_list_base));
  + return static_cast<LnkLst&>(*m_list_base);
  +}
  +
  +template <>
  +inline auto& List::as<ObjKey>() const
  +{
  + REALM_ASSERT(dynamic_cast<LnkLst*>(&*m_list_base));
  return static_cast<LnkLst&>(*m_list_base);
  }
  