Type Error on Regression Problem

Ah. Ok. In that case, is there something I can do ahead of time to avoid this error?