remove unecessary typecasting from user preferences and settings