Testing your patch it looks to me that this will only work for converting to basic types. For other types the column type will be lost (mapped as serializable).