WIP: of_type impl

closes #7316
No worries. This'll be neat!