thoughtbot/shoulda-matchers — comment on commit 0820901e4ba02592777aa1beb73fb338178ba915
File: lib/shoulda/matchers/active_record/association_matcher.rb line 185
By Hakon:

removed the casting and the tests still pass, i don't see any reason to why i did this.