Changed ndt::type::tcast ot ndt::type::extended, and removed some unnecessary inlines