Changed method of comparing class types

The method used to compare the metrics object against a class type wasn't working, resulting in the metric always being sent with the default value. This small change fixed it for us, os x JDK 1.7.