Added conversion of Post type on update