Correctly identify which object type we're trying to transform