Converts strings to their true type.