Can't find a patch for "CiviCRM is not of type Int"
I remember this bug from a long time ago.  I'm pretty positive it's been fixed.

I would try upgrading a copy of your site to the latest 4.6 to see if the problem still exists.  If it doesn't, then upgrading is your solution.