getClassExtension -> asExtension (shorter syntax)