casting tests, should have done this while writing it...