79316976

Date: 2024-12-30 06:51:42
Score: 1
Natty:
Report link

This is the solution I use:

public static T ChangeType<T>(object data)
{
    return (T)(Convert.ChangeType(data, typeof(T)));
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mr. X