Changing attributes to int