PrincipalTypeFromString extension

on