Remove Bob installation from Travis builds
Split casting function into complex and non-complex