Added type check in assignment with operation