fixed TypeToken not accepting an interface name

TypeToken did not check for an existing interface, this fixes it.