var
is just shorthand for "let the compiler pick the right variable type for me" (compile-time type-inference is the more exact term).
object
, on the other hand, is a specific type; all other reference types derive from object
, so you can assign anything to a variable of type object
.