adding option for string casting