Added an is<typename T> function.

Added an is<typename T> function that determines whether the held
pointer is of type T or not.