Implementing assignment, which depends on the types of the source and operand (primitives vs objects).