adds explicit #toClass mapping API method