Dualities And Topological Field Theories From Twisted Geometries