namespace Blazor.App.Common
{
public static class ObjectExtensions
{
///
/// Used to simplify and beautify casting an object to a type.
///
/// Type to be casted
/// Object to cast
/// Casted object
public static T As(this object obj)
where T : class
{
return (T)obj;
}
}
}