dynamic convert type c#

C#
public static dynamic Convert(dynamic source, Type dest) {
  return Convert.ChangeType(source, dest);
}
Source

Also in C#: