Should compare classes first to see if it's safe to call type on them.