Type assertion instead of switching on type

Since this is only checking for one type, it's a little faster to just do a type assertion (also it's a little more readable as there's no default). Just thought y'all might be interested!

Some (ugly) benchmarking:
https://gist.github.com/ttacon/757bdf2b6ae5bc1322c7