Added some code for type conversions during semantics parsing.