return error for get command if type mismatch