Convert str to int if it is when set field