class B : A() fun Any.string() = this as String