filter out dynamic type based on static type