Moving the (objact) cast to the correct spot
Merge pull request #34 from arcaneadam/7.x

Moving the (objact) cast to the correct spot