fix case conversion between camel and underscore in type conversion methods