Change the order or params to genIs/AsInstanceOf.