str to int in viewscamera