Allow the use of TypeName(value) for casting.