[core,casting] Add 'same_kind' flag to `cast`. Remove type-specific cast functions.
[core,casting] Add 'same_kind' flag to `cast`. Remove type-specific cast functions.

Bugfix: ensure shape is kept when casting.

mackelab/theano_shim