Rename _castToSchema as _innerCast