/// <summary> /// Cast TEnum to <see cref="short"/> /// </summary> /// <param name="enum"></param> /// <param name="defaultVal"></param> /// <typeparam name="TEnum"></typeparam> /// <returns></returns> public static short CastToInt16 <TEnum>(this TEnum @enum, short defaultVal = default) where TEnum : struct => NumericConv.EnumToInt16(@enum, defaultVal);