Nested tuples to datatypes