This is the solution I use:
public static T ChangeType<T>(object data) { return (T)(Convert.ChangeType(data, typeof(T))); }