Fix several problems with types conversion