Return `object` instead of `dynamic`

Users can still declare local variables with the type `dynamic` if they need that functionality.