reuse method to detect model type
#toString() must never fail