Change default function to work on Types rather than Strings