Fixed bug where conversion to the same type was not allowed