public static int?GetIntegerExtension(this IExtendable extendable, string uri) { var value = extendable.GetExtensionValue <Integer>(uri); if (value != null) { return(value.Value); } else { return(null); } }