Fixed bug in convert_dtype when dtype is int32 or int64 instead of int16.