less restrictive check for Buffer type