diff --git a/TeleSharp.TL/TLVector.cs b/TeleSharp.TL/TLVector.cs index bf3d025..08e8ae5 100644 --- a/TeleSharp.TL/TLVector.cs +++ b/TeleSharp.TL/TLVector.cs @@ -81,9 +81,9 @@ namespace TeleSharp.TL } else if (typeof(T).BaseType == typeof(TLObject)) { - var res = (TLObject) (Convert.ChangeType(item, typeof (TLObject))); + var res = (TLObject)(object)item; res.SerializeBody(bw); - } + } } } }