I have a schema according to which AlphaNumeric string of specific length will be interpreted. For example, index 0-12 interpret as `string`, 13-20 interpreted as `Int`, 21-22 as `Bool` and so on.
So far, I have a linked list that is formed at runtime, where each element(`struct`) has two fields: length and type(`enum`). By iterating through the list and checking which type the element belongs to, correct conversion is performed.  

It seems like my method very inefficient and error prone to this task. Is there a better way to do this ?