convert string to other datatypes