text: // license [
  // This file is part of the Phantom project. Copyright 2011-2020 Vivien Millet.
  // Distributed under the MIT license. Text available here at
  // https://github.com/vlmillet/phantom
  // ]
  
  #include "Object.h"
  
  #include <phantom/lang/Class.h>
  
  namespace phantom
  {
  void* Object::as(lang::Class* a_pClass)
  {
      return rtti.metaClass->upcast(a_pClass, rtti.instance);
  }
  void const* Object::as(lang::Class* a_pClass) const
  {
      return const_cast<Object*>(this)->as(a_pClass);
  }
  } // namespace phantom
  