cast strings in number_of_processes

fix #154