Isn't it dangerous to modify attributes of an existing type, which may affect other variables sharing the same type?