BUG/TST: fix downcasting of float-like object array

related #5394

This now works

```
In [1]: arr = np.array([1.0,2.0],dtype=object)

In [3]: pandas.core.common._possibly_downcast_to_dtype(arr,'infer')
Out[3]: array([1, 2])

```