In alignment with `valueOf`, perhaps name this `valueOfType` or `fromType`?